/**
 * 
 */
package com.archives.blog.common.domain.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.archives.blog.common.support.BaseEntity;

/**
 * pv统计
 * 
 * @author chh
 *
 */
@Entity
@Table(name = "blog_pv_statistics")
public class PVStatistics extends BaseEntity<String> implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** 地址、可以是项目地址、页面地址*/
	private String address;

	/** 统计类型*/
	private String bsnType;
	
	/**
	 * pv量
	 */
	private Long pvCount = 0l;
	
	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @return the bsnType
	 */
	public String getBsnType() {
		return bsnType;
	}

	/**
	 * @param bsnType the bsnType to set
	 */
	public void setBsnType(String bsnType) {
		this.bsnType = bsnType;
	}

	/**
	 * @return the pvCount
	 */
	public Long getPvCount() {
		if (pvCount == null) {
			return 0l;
		}
		return pvCount;
	}

	/**
	 * @param pvCount the pvCount to set
	 */
	public void setPvCount(Long pvCount) {
		if (pvCount == null)
			this.pvCount = 0l;
		else 
			this.pvCount = pvCount;
	}
	
	
}
